{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "你的电脑本地IP地址是：192.168.233.1\n"
     ]
    }
   ],
   "source": [
    "import socket as f\n",
    "\n",
    "hostn = f.gethostname()\n",
    "Laptop = f.gethostbyname(hostn)\n",
    "print(\"你的电脑本地IP地址是：\" + Laptop)\n"
   ]
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "c16b17713ab5f0f34b19b30e60a972ca5b8ae92225f60dc8412455a8851c7a93"
  },
  "kernelspec": {
   "display_name": "Python 3.8.4rc1 32-bit",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
